using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services
{
    /********************************BEGIN SinhVienMonHocService****************************************/
    ///<summary>
    /// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
    /// <para>Date:09/08/2010 12:01:35</para>
    /// <para>Class Name: SinhVienMonHocService</para>
    /// <para>Description: </para>
    ///</summary>


    public partial class SinhVienMonHocService 
    {
        public DataSet SelectAllDSWithDiemMonHoc(int HocKy_ID, int NamHoc_ID, int LoaiDiem_ID, int MonHoc_ID, List<int> LsSinhVien)
        {
            SinhVienMonHocDAO dao = new SinhVienMonHocDAO();
            return dao.SelectAllDSWithDiemMonHoc(HocKy_ID, NamHoc_ID, LoaiDiem_ID, MonHoc_ID, LsSinhVien);
        }
        public bool UpdateListDat(List<int> LsSinhVienMonHoc_ID, List<bool> LsDat)
        {
            SinhVienMonHocDAO dao = new SinhVienMonHocDAO();
            bool result = true;
            for (int i = 0; i < LsSinhVienMonHoc_ID.Count; i++)
            {
                result &= dao.UpdateIsDat(LsDat[i], LsSinhVienMonHoc_ID[i]);
            }
            return result;
        }
    }
    /*****************************************************************************************************/
    /**********************************END SinhVienMonHocWebService*****************************************/
    /*****************************************************************************************************/
}

